package com.wenx.v3system.modular.platform.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 平台菜单DTO
 * 
 * @author wenx
 */
@Data
@Schema(description = "平台菜单信息")
public class PlatformMenuDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "菜单ID", example = "1")
    private Long id;

    @NotBlank(message = "菜单编码不能为空")
    @Schema(description = "菜单编码", example = "dashboard")
    private String code;

    @NotBlank(message = "菜单名称不能为空")
    @Schema(description = "菜单名称", example = "平台概览")
    private String name;

    @Schema(description = "菜单路径", example = "/platform/dashboard")
    private String path;

    @Schema(description = "菜单图标", example = "HomeOutlined")
    private String icon;

    @Schema(description = "菜单描述", example = "平台管理概览页面")
    private String description;

    @Schema(description = "菜单分类", example = "platform")
    private String category;

    @Schema(description = "所需权限代码", example = "platform:dashboard:read")
    private String requiredPermissions;

    @Schema(description = "是否为内置菜单", example = "true")
    private Boolean isBuiltin;

    @Schema(description = "菜单状态：1-启用，0-禁用", example = "1")
    private Integer status;

    @Schema(description = "排序", example = "1")
    private Integer sort;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date modifyTime;
} 